//  页面路径：store/index.js
import Vue from 'vue'
import Vuex from 'vuex'

import car from '@/store/modules/car.js'


Vue.use(Vuex)

const store = new Vuex.Store({
	modules: {
		car
	}
})


store.subscribe((mutataion, state) => {
	uni.setStorageSync('carList', state.car.carList)
})

export default store